var phonecatServices = angular.module('userService', ['ngResource']);

alert("service");

phonecatServices.factory('User', ['$resource',
  function($resource){
    return $resource('http://localhost:8080/restservice/rest/usuarios', {}, {
      query: {method:'GET', params:{}, isArray:false}
    });
  }]);